package com.zsc.graduate.qovipan.controller;

import com.zsc.graduate.qovipan.util.FileInfo;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.logging.Logger;

/**
 * @author 枫树下奶罐
 * @version 1.0.0
 * @date 2022/3/26 0:43
 */
@Controller
public class FilePlayController {

    @GetMapping("/user/{QID}/{FILEID}")
    public String exploreMedia(@PathVariable long QID,
                               @PathVariable long FILEID,
                               Model model) {
        Logger log= Logger.getLogger("into.viewMedia");
        log.info("进入浏览页面");
        FileInfo fileInfo = new FileInfo();
        fileInfo.setFid(FILEID);
        fileInfo.setFilename("1.jpg");
        model.addAttribute("fileInfo", fileInfo);
        return "/media-player";
    }
}







